//
//  NSString+Tools.h
//  OhMyBaby
//
//  Created by JPlay on 14-5-22.
//  Copyright (c) 2014年 JPlay. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Tools)

+(NSString *)MD5WithString:(NSString *)string;

+(NSString *)CardSecurityString:(NSString *)string andFirstShowIndex:(int)index;

// 字符串隐藏最后count位数据
+(NSString *)showSecurityString:(NSString *)string andSurplusCount:(int)count;

//+ (BOOL)LoginJudgeAndShowView;

//+ (BOOL)UnlockPasswordOpen;

// 判断密码正确性，8位，非纯数字
+ (BOOL)JudgePasswordCorrect:(NSString *)Password;

// 提现金额判断 0-9，小数点
+ (BOOL)JudgeWithdawalMoney:(NSString *)Money;

// 交易密码 6位，非纯数字
+ (BOOL)JudgePayPasswordCorrect:(NSString *)Password;

// 手机验证
+ (BOOL)checkPhoneNumInput:(NSString *)Phone;

//+(NSURL *)ImagePathForServer:(NSString *)imagePath;

// 用户id
//+ (NSString *)getUserID;

// 金额每隔三位
+(NSString *)countNumAndChangeformat:(NSString *)num;

@end
